import request from '@/utils/request';
import Qs from 'qs';



// 核价统计酒茶保健
export const getDataPriceWineTea = (data: any) => {
    return request({
        url: `/basic/getDataPriceWineTea`,
        method: 'post',
        data: data
    });
};

// 核价统计鞋帽家纺
export const getDataPriceShoes = (data: any) => {
    return request({
        url: `/basic/getDataPriceShoes`,
        method: 'post',
        data: data
    });
};

// 核价统计食品部
export const getDataPriceFood = (data: any) => {
    return request({
        url: `/basic/getDataPriceFood`,
        method: 'post',
        data: data
    });
};

// 核价统计日化电器
export const getDataPriceDailyElectrical = (data: any) => {
    return request({
        url: `/basic/getDataPriceDailyElectrical`,
        method: 'post',
        data: data
    });
};

// 核价统计服装部
export const getDataPriceClothing = (data: any) => {
    return request({
        url: `/basic/getDataPriceClothing`,
        method: 'post',
        data: data
    });
};

// 核价统计饰品箱包部
export const getDataPriceAccessory = (data: any) => {
    return request({
        url: `/basic/getDataPriceAccessory`,
        method: 'post',
        data: data
    });
};

// 各部门占比
export const getDataDeptProportion = (data: any) => {
    return request({
        url: `/basic/getDataDeptProportion`,
        method: 'post',
        data: data
    });
};





// 柱状图统计
export const getDeptViewCont = (data: any) => {
    return request({
        url: `/basic/getDeptViewCont`,
        method: 'post',
        data: data
    });
};


// 顶部统计
export const getViewCount = (data: any) => {
    return request({
        url: `/basic/getViewCount`,
        method: 'post',
        data: data
    });
};

// 各部门审批数据汇总
export const getDeptData = (data: any) => {
    return request({
        url: `/basic/getDeptData`,
        method: 'post',
        data: data
    });
};

// 各部门审批数据汇总
export const getDeptDataSecond = (data: any) => {
    return request({
        url: `/basic/getDeptDataSecond`,
        method: 'post',
        data: data
    });
};

// 获取部门列表
export function getSystemList(query: any) {
    return request({
        url: "/system/dept/queryList",
        method: "get",
        params: query,
    });
}

// 各部门审批数据详细信息-一审
export const getDeptDataList = (data: any) => {
    return request({
        url: `/basic/getDeptDataList`,
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
        method: 'post',
        data: Qs.stringify(data)
    });
};

// 各部门审批数据详细信息-二审
export const getDeptDataListSecond = (data: any) => {
    return request({
        url: `/basic/getDeptDataListSecond`,
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
        method: 'post',
        data: Qs.stringify(data)
    });
};






